Optimal Time-Space Tradeoff for Shared Memory Leader Election
نویسندگان
چکیده
Though it is common practice to treat synchronization primitives for multiprocessors as abstract data types, they are in reality machine instructions on registers. A crucial theoretical question with practical implications is the relationship between the size of the register and its computational power. We wish to study this question and choose as a rst target the popular compare&swap operation (which is the basis for many modern multiprocessor architectures). Our main results are: 1. We show that leader election among n processes can be solved using a compare&swap register that can hold log n log logn values, and n read/write registers. That is, n = (k ? 1)! where k is the number of values in the compare&swap register, so the compare&swap register has only O(log log n) bits. 2. We prove a tight tradeoo between the space and time necessary to solve leader election with a compare&swap register. Speciically, we show that any algorithm for leader election among n processes with a k value compare&swap register, where k logn log logn , must have a run that accesses the compare&swap register (log k n) times. We conjecture that for k < log n loglog n there is no solution. The results of this paper suggest that a complexity hierarchy for multiprocessor synchronization operations should be based both on the space complexity of synchronization registers and their type.
منابع مشابه
Self-stabilizing Leader Election in Polynomial Steps
In this paper, we propose a silent self-stabilizing leader election algorithm for bidirectional connected identified networks of arbitrary topology. This algorithm is written in the locally shared memory model. It assumes the distributed unfair daemon, the most general scheduling hypothesis of the model. Our algorithm requires no global knowledge on the network (such as an upper bound on the di...
متن کاملFast Space Optimal Leader Election in Population Protocols
The model of population protocols refers to the growing in popularity theoretical framework suitable for studying pairwise interactions within a large collection of simple indistinguishable entities, frequently called agents. In this paper the emphasis is on the space complexity in fast leader election via population protocols governed by the random scheduler, which uniformly at random selects ...
متن کاملMinimizing the Amount of Shared Memory for an Election Protocol
We consider a particular application of asynchronous leader election protocols using shared memory to a hypothetical pope election process. We propose an algorithm using 2 bits of shared memory which runs in quadratic time. We introduce the notion of cheating and propose a variation of our algorithm which is resistant to cheating while still running in polynomial time. We establish a lower boun...
متن کاملProactive Leader Election in Asynchronous Shared Memory Systems
In this paper, we give an algorithm for fault-tolerant proactive leader election in asynchronous shared memory systems, and later its formal verification. Roughly speaking, a leader election algorithm is proactive if it can tolerate failure of nodes even after a leader is elected, and (stable) leader election happens periodically. This is needed in systems where a leader is required after every...
متن کاملAn O(sqrt n) Space Bound for Obstruction-Free Leader Election
We present a deterministic obstruction-free implementation of leader election from O( √ n) atomic O(logn)-bit registers in the standard asynchronous shared memory system with n processes. We provide also a technique to transform any deterministic obstruction-free algorithm, in which any process can finish if it runs for b steps without interference, into a randomized wait-free algorithm for the...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- J. Algorithms
دوره 25 شماره
صفحات -
تاریخ انتشار 1997